package vip.specimen.system.datasource.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;

@Getter
@Setter
@Entity
@Table(name = "ApiConfig")
public class SystemApiConfigEntity extends BaseEntity {
    @ApiModelProperty(value = "AccessKey")
    private String accessKey;
    @ApiModelProperty(value = "SecretKey")
    private String secretKey;
    @ApiModelProperty(value = "状态",dataType = "boolean")
    private boolean enable = Boolean.FALSE;

    public SystemApiConfigEntity() {

    }

    public SystemApiConfigEntity(String accessKey, String secretKey) {
        this.accessKey = accessKey;
        this.secretKey = secretKey;
    }

    public SystemApiConfigEntity(String accessKey, String secretKey, boolean enable) {
        this.accessKey = accessKey;
        this.secretKey = secretKey;
        this.enable = enable;
    }

    @Override
    public String toString() {
        return "ApiSpecimen{" +
                "accessKey='" + accessKey + '\'' +
                ", secretKey='" + secretKey + '\'' +
                ", enable=" + enable +
                '}';
    }
}
